﻿@model DAMS.Models.Article

@{
    ViewData["Title"] = "View";
}

<h1>View</h1>

<div>
    <h4>Article</h4>
    <hr />
    <dl class="row">
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.ID)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.ID)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Title)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Title)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Auth)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Auth)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.PublishTime)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.PublishTime)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.isTop)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.isTop)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.isPublish)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.isPublish)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.isCarousel)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.isCarousel)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.CarouselPath)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.CarouselPath)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.CoverPath)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.CoverPath)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Content)
        </dt>
        <dd class="col-sm-10">
            @Html.Raw(Model.Content)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.Excerpt)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.Excerpt)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.CategoryID)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.CategoryID)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.ClickNum)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.ClickNum)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.DeleteFlag)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.DeleteFlag)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.CreateTime)
        </dt>
        <dd class="col-sm-10">
            @Html.DisplayFor(model => model.CreateTime)
        </dd>
        <dt class="col-sm-2">
            @Html.DisplayNameFor(model => model.ArticleTags)
        </dt>
        <dd class="col-sm-10">
            @foreach(var item in Model.ArticleTags)
            {
            <span> @item.Tag.TagName</span>
            }
        </dd>
    </dl>
</div>
<div>
    @Html.ActionLink("Edit", "Edit", new { /* id = Model.PrimaryKey */ }) |
    <a asp-action="Index">Back to List</a>
</div>
